<%@ page import="com.XiGuaXiaoMe.entity.Users" %>
<%@ page import="java.util.List" %>
<%@ page import="com.XiGuaXiaoMe.entity.course" %><%--
  Created by IntelliJ IDEA.
  User: jl
  Date: 2021/11/10
  Time: 21:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<course> courses=(List<course>) request.getAttribute("course");
%>

<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>响应式表格</title>
    <link rel="stylesheet" href="../CSS/table.css" />
</head>
<body>
<div class="container">
    <table>
        <thead>
        <tr>
            <th>课程名称</th>
            <th>课序号</th>
            <th>代课老师</th>
            <th>上课时间及地点</th>
            <th>课余量</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

        <%for(course c:courses){ %>

        <tr>
            <td><%=c.getName()%></td>
            <td><%=c.getXuhao()%></td>
            <td><%=c.getTeacher()%></td>
            <td><%=c.getTime()%><%=c.getPlace()%></td>
            <td><%=c.getRongliang()%></td>
            <td>无法选课</td>
        </tr>
        <%}%>

        </tbody>
    </table>
</div>
</body>
</html>
